package com.cowain.monitor.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.cowain.monitor.entity.ErpMoEntity;
import com.cowain.monitor.entity.PmsProductionOrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * PMS ehr-backend
 *
 * @Classname ErpMoDao
 * @Description TODO
 * @Date 2020-07-27 17:43
 * @Created 沈科举
 */
@Mapper
public interface ErpMoDao extends BaseMapper<ErpMoEntity> {
    /**
     * 根据推送状态查询生产订单信息
     * @param pageIndex
     * @return
     */
    List<ErpMoEntity> findErpMoByIsDel(@Param("pageIndex") Integer pageIndex);

    /**
     * 查询所有条数
     * @return
     */
    int findTotalCount();


    /**
     * 插入pms_production_order(生产订单信息表)表内
     * @param pmsProductionOrderEntity
     * @return
     */
    int addPmsProductionOrderEntity(List<PmsProductionOrderEntity> pmsProductionOrderEntity);

    /**
     * 根据id修改生产订单已读状态
     * @param erpMoEntity
     * @return
     */

    int updatErpMoById(ErpMoEntity erpMoEntity);
}



